#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QLabel>

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    this -> setWindowTitle("车载系统");

    // 挂接navigationController布局
    QWidget *centralWidget = new QWidget(this);
    centralWidget->setLayout(MyNavigationController::instance().getStackLayout());

    // this -> setFixedSize(QSize(880,550));
    // 设置中心部件
    setCentralWidget(centralWidget);
}

MainWindow::~MainWindow()
{
    delete ui;
}
